package com.example.demo.controller;

import com.example.demo.entity.IndustrialEconomicIndicators;
import com.example.demo.service.IndustrialEconomicIndicatorsService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Controller
@RequestMapping("/IndustrialEconomicIndicators")
public class IndustrialEconomicIndicatorsController {

    @Resource
    IndustrialEconomicIndicatorsService industrialEconomicIndicatorsService;
    //当月高新技术产业产值

    @RequestMapping("/SelectHigh_tech")
    @ResponseBody
    public Map<String, List<IndustrialEconomicIndicators>> SelectHigh_tech(){
        Map<String, List<IndustrialEconomicIndicators>> map = new HashMap<>();
        map.put("IndustrialEconomicIndicators",industrialEconomicIndicatorsService.SelectHigh_tech());
        return map;
    }

    //高新技术产业总产值

    @RequestMapping("/SelectAll")
    @ResponseBody
    public Map<String,List<IndustrialEconomicIndicators>> SelectAll(){
        Map<String,List<IndustrialEconomicIndicators>> map = new HashMap<>();
        map.put("IndustrialEconomicIndicators",industrialEconomicIndicatorsService.SelectAll());
        return  map;
    }
    //工业总产值

    @RequestMapping("/SelectindustrialAll")
    @ResponseBody
    public Map<String,List<IndustrialEconomicIndicators>> SelectindustrialAll(){
        Map<String,List<IndustrialEconomicIndicators>> map = new HashMap<>();
        map.put("IndustrialEconomicIndicators",industrialEconomicIndicatorsService.SelectindustrialAll());
        return  map;
    }
    //规上工业总产值
    @RequestMapping("/SelectGrossIndustry")
    @ResponseBody
    public Map<String,List<IndustrialEconomicIndicators>> SelectGrossIndustry(){
        Map<String,List<IndustrialEconomicIndicators>> map = new HashMap<>();
        map.put("IndustrialEconomicIndicators",industrialEconomicIndicatorsService.SelectGrossIndustry());
        return  map;
    }
    //综合能源消费量

    @RequestMapping("/SelectIntegrated_energy")
    @ResponseBody
    public Map<String,List<IndustrialEconomicIndicators>> SelectIntegrated_energy(){
        Map<String,List<IndustrialEconomicIndicators>> map = new HashMap<>();
        map.put("IndustrialEconomicIndicators",industrialEconomicIndicatorsService.SelectIntegrated_energy());
        return  map;
    }
    //规上工业用电量

    @RequestMapping("/SelectIndustrialpower")
    @ResponseBody
    public Map<String,List<IndustrialEconomicIndicators>> SelectIndustrialpower(){
        Map<String,List<IndustrialEconomicIndicators>> map = new HashMap<>();
        map.put("IndustrialEconomicIndicators",industrialEconomicIndicatorsService.SelectIndustrialpower());
        return  map;
    }
    //万元产值能耗

    @RequestMapping("/SelectConsumption")
    @ResponseBody
    public Map<String,List<IndustrialEconomicIndicators>> SelectConsumption(){
        Map<String,List<IndustrialEconomicIndicators>> map = new HashMap<>();
        map.put("IndustrialEconomicIndicators",industrialEconomicIndicatorsService.SelectConsumption());
        return  map;
    }
}
